package com.hst.capacity.infra.persistence.jpa.setting.commision;

import com.hst.capacity.domain.model.entity.franchisee.commision.FranchiseeCommisionEntity;
import com.hst.capacity.domain.model.response.franchisee.commision.FranchiseeCommisionVO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface FranchiseeCommisionRepository extends JpaRepository<FranchiseeCommisionEntity, String> {

    List<FranchiseeCommisionEntity> findByIdFranchisee(String idFranchisee);

    FranchiseeCommisionEntity findByChannelAndIdFranchiseeAndModuleType(String channel, String idFranchisee, int moduleType);

    FranchiseeCommisionEntity findByIdFranchiseeCommision(String idFranchiseeCommision);

}